package types;

public class FinalTest {
	private String finalTest;
	private int setNumber;
	
	// constructors
	public FinalTest(String test, int set) {
		this.finalTest = test;
		this.setNumber = set;
	}
	
	// getters and setters
	public String getTest(){
		return this.finalTest;
	}
	
	public int getSet(){
		return this.setNumber;
	}
	
	public int getIndex(DataSet ds){
		for(int i=0; i<ds.getSubSetByIndex(setNumber).getSize(); i++){
			if(this.finalTest.equals(ds.getSubSetByIndex(setNumber).getElement(i)))
				return ds.getSubSetByIndex(setNumber).getTestIndex(i);
		}
		return 0;
		
	}
	
	
}
